import http from "http";

let app = http.createServer((res,req) => {
    res.writeHead(200);
    res.end('hello world\n' + process.pid);
});



app.listen(1314,() => {
    console.log('服务在 http://localhost:1314 上启动起来了');
})